package com.halfsword.creativecraft.utils;

import com.halfsword.creativecraft.CreativeCraft;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.tags.BlockTags;
import net.minecraft.tags.ItemTags;
import net.minecraft.tags.TagKey;
import net.minecraft.world.item.Item;
import net.minecraft.world.level.block.Block;

public class SpaceTags {
    public static class Blocks{
        public static final TagKey<Block> SPACEDECECTOR_VALUABLES = tag("space_detector_valuables");
        public static final TagKey<Block> NEEDS_SPACE_TOOL = tag("needs_space_tool");


        private static TagKey<Block> tag(String name) {
            return BlockTags.create(ResourceLocation.fromNamespaceAndPath(CreativeCraft.MOD_ID,name));
        }
    }
    public static class Items {
        private static TagKey<Item> tag(String name) {
            return ItemTags.create(ResourceLocation.fromNamespaceAndPath(CreativeCraft.MOD_ID,name));
        }
    }
}

